package com.swpu.service_sport.service.impl;

import com.swpu.service_sport.entity.SportCategory;
import com.swpu.service_sport.mapper.SportCategoryMapper;
import com.swpu.service_sport.service.SportCategoryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author chaichai
 * @since 2024-02-23
 */
@Service
public class SportCategoryServiceImpl extends ServiceImpl<SportCategoryMapper, SportCategory> implements SportCategoryService {

    @Override
    public List<SportCategory> getSportCategories() {
        List<SportCategory> sportCategoryList = this.list(null);
        return sportCategoryList;
    }
}
